package com.rc.mutievcharger.dto.ylevcharger.terminal;

import com.rc.evcharger.common.annotation.ByteLength;
import com.rc.evcharger.common.base.yl.BaseYlCommand;

/**
 * Create by Yang on 2021/7/30
 * 当前只下发二维码指令
 */
public class YlQCodeComandResp extends BaseYlCommand {


    @ByteLength(length = 2)
    private String obligate1; //预留字段1
    @ByteLength(length = 2)
    private String obligate2; //预留字段1
    @ByteLength(length = 1)
    private String cmdType; // 0-查询 1-设置
    @ByteLength(length = 4)
    private String cmdAddress; //启始命令地址  参见“命令地址列表 3_1_9
    @ByteLength(length = 2)
    private String cmdLength; //设置参数字节数
    @ByteLength(length = 256)
    private String cmdData; // 设置数据 当类型为设置时，才有此字段


    public YlQCodeComandResp(String cmdData) {
        this.obligate1 = "00 00";
        this.obligate2 = this.obligate1;
        this.cmdType = "01";
        this.cmdAddress="07 00 00 00";
        this.cmdLength = "00 01";
        this.cmdData = cmdData;
    }

    public String getObligate1() {
        return obligate1;
    }

    public void setObligate1(String obligate1) {
        this.obligate1 = obligate1;
    }

    public String getObligate2() {
        return obligate2;
    }

    public void setObligate2(String obligate2) {
        this.obligate2 = obligate2;
    }

    public String getCmdType() {
        return cmdType;
    }

    public void setCmdType(String cmdType) {
        this.cmdType = cmdType;
    }

    public String getCmdAddress() {
        return cmdAddress;
    }

    public void setCmdAddress(String cmdAddress) {
        this.cmdAddress = cmdAddress;
    }

    public String getCmdLength() {
        return cmdLength;
    }

    public void setCmdLength(String cmdLength) {
        this.cmdLength = cmdLength;
    }

    public String getCmdData() {
        return cmdData;
    }

    public void setCmdData(String cmdData) {
        this.cmdData = cmdData;
    }
}
